package com.lds.register.center.server.business.appinstance.service;

import com.lds.management.center.common.model.dto.ResultDTO;
import com.lds.register.center.client.common.model.request.HeartbeatRequest;
import com.lds.register.center.client.common.model.request.RegisterAppInstanceRequest;
import com.lds.register.center.client.common.model.response.RegisterAppInstanceResponse;

import java.util.Map;

public interface AppInstanceRemoteService {
    ResultDTO<RegisterAppInstanceResponse> registerAppInstance(RegisterAppInstanceRequest request);

    ResultDTO<Boolean> heartbeat(HeartbeatRequest request);

    Map<Long, Long> getHeartbeatMap();
}
